<template>
  <div>
    <van-nav-bar :title="title" :left-arrow="leftArrow" @click-left="handleClickLeft" />
  </div>
</template>

<script>
import { NavBar } from 'vant';

export default {
  components: {
    [NavBar.name]: NavBar
  },
  props: {
    title: {
      type: String,
      default: '标题'
    },
    leftArrow: {
      type: Boolean,
      default: true
    }
  },
  data() {
  },
  methods: {
    handleClickLeft() {
      this.$emit('click-left');
    }
  }
}
</script>

<style scoped>

</style>

